<link rel="stylesheet" type="text/css" href="<?=gurl('css');?>/sites.css" />
<script language="javascript" src="<?=gurl('js');?>/user.js"></script>
<div class="login">
<? if($account):?>
<a href="/home/profile/<?=$account["account_id"];?>"><?=$account["account_username"];?></a><a href="<?=gurl('accounts/logout');?>">退出</a><a href="<?=gurl('about/contact');?>">建议</a>
<? else:?>
<a href="<?=gurl('accounts/');?>">登录</a><a href="<?=gurl('accounts/');?>">注册</a><a href="<?=gurl('about/contact');?>">建议</a>
<? endif;?>
</div>
<div class="w940">
    <div class="top100L">
        <h3 class="top100Tit"><a id="top" name="top">&nbsp;</a>人气轻站<strong>TOP100</strong></h3>
        <p class="top100Col"><span class="left">站名</span><span class="right">关注人数</span></p>
        <div class="blank8"></div>
        <ul class="top100List">
        <? foreach ($hotsites as $k => $site):?>
        <? if ($k < 3) :?>
        	<li><b <? if($k == 0):?>class="numOne"<? elseif ($k == 1):?>class="numTwo"<? elseif ($k == 2):?>class="numThree"<? endif;?>><?=$k+1;?></b><span class="minHead"><a href="<?=c('site_url');?><?=$site['domain'];?>" ><img src="<?=gurl('data');?>/upload_pic/<?=$site['info']['logo'];?>" alt="<?=$site['name'];?>" onerror="this.src='<?=gurl('images');?>/head3030.gif';" width="30" height="30" /></a></span><a class="webTit" style="font-size:14px;" href="<?=c('site_url');?><?=$site['domain'];?>" ><?=$site['name'];?></a><span class="popNum"><?=$site['fans'];?></span></li>
        <? else:?>
        	<li><b class="numMax"><?=$k+1;?></b><a class="webTit" href="<?=c('site_url');?><?=$site['domain'];?>" ><?=$site['name'];?></a><span class="popNum"><?=$site['fans'];?></span></li>
        <? endif;?>
        <? endforeach;?>
        </ul>
    </div>
    <div class="top100C">
        <h3 class="top100Tit">上周人气<strong>TOP100</strong></h3>
        <p class="top100Col"><span class="left">站名</span><span class="right">新增关注人数</span></p>
        <div class="blank8"></div>
        <ul class="top100List">
        <? foreach ($hotweeksites as $k => $site):?>
        <? if ($k < 3) :?>
        	<li><b <? if($k == 0):?>class="numOne"<? elseif ($k == 1):?>class="numTwo"<? elseif ($k == 2):?>class="numThree"<? endif;?>><?=$k+1;?></b><span class="minHead"><a href="<?=c('site_url');?><?=$site['domain'];?>" ><img src="<?=gurl('data');?>/upload_pic/<?=$site['info']['logo'];?>" alt="<?=$site['name'];?>" onerror="this.src='<?=gurl('images');?>/head3030.gif';" width="30" height="30" /></a></span><a class="webTit" style="font-size:14px;" href="<?=c('site_url');?><?=$site['domain'];?>" ><?=$site['name'];?></a><span class="popNum"><?=$site['fans'];?></span></li>
        <? else:?>
        	<li><b class="numMax"><?=$k+1;?></b><a class="webTit" href="<?=c('site_url');?><?=$site['domain'];?>" ><?=$site['name'];?></a><span class="popNum"><?=$site['fans'];?></span></li>
        <? endif;?>
        <? endforeach;?>
        </ul>
    </div>
    <div class="top100R">
         <h3 class="top100Tit">新开张轻站</h3>
        <p class="top100Col"><span class="left">站名</span><span class="right">创建时间</span></p>
        <div class="blank8"></div>
        <ul class="top100List">
        <? foreach ($newsites as $k => $site):?>
        <? if ($k < 3) :?>
        	<li><b <? if($k == 0):?>class="numOne"<? elseif ($k == 1):?>class="numTwo"<? elseif ($k == 2):?>class="numThree"<? endif;?>><?=$k+1;?></b><span class="minHead"><a href="<?=c('site_url');?><?=$site['domain'];?>" ><img src="<?=gurl('data');?>/upload_pic/<?=$site['info']['logo'];?>" alt="<?=$site['name'];?>" onerror="this.src='<?=gurl('images');?>/head3030.gif';" width="30" height="30" /></a></span><a class="webTit" style="font-size:14px;" href="<?=c('site_url');?><?=$site['domain'];?>" ><?=$site['name'];?></a><span class="popNum"><?=date("m-d",$site['regtime']);?></span></li>
        <? else:?>
        	<li><b class="numMax"><?=$k+1;?></b><a class="webTit" href="<?=c('site_url');?><?=$site['domain'];?>" ><?=$site['name'];?></a><span class="popNum"><?=date("m-d",$site['regtime']);?></span></li>
        <? endif;?>
        <? endforeach;?>
        </ul>
    </div>
	<div class="blank8"></div>
    <p style="width:80px;margin:0 auto"><a class="goTop cCGray" href="#top">返回顶部</a></p>
</div>
